package com.zyh.scs.admin.api.constant.open;

/**
 * @author hwh
 */
public enum OpenResponseCode {

	SUCCESS(100000, "成功"),

	SYSTEM_EXCEPTION(100001, "系统异常"),
	SIGN_ERROR(100002, "签名错误"),

	MERCHANT_NOT_EXIST(100003, "商户不存在"),
	USER_NOT_EXIST(100004, "用户不存在"),
	INSUFFICIENT_BALANCE(100005, "用户余额不足"),

	ORDER_EXIST_DEBIT_SUCCESS(100006, "商户订单号已存在，扣款已成功"),
	ORDER_NOT_EXIST(100007, "订单不存在"),
	EXCEEDS_REFUNDABLE_AMOUNT(100008, "退款金额大于可退款金额"),
	SYNC_FAIL(100009, "同步失败"),
	USER_STATUS_EXCEPTION(100010, "用户状态异常"),
	ORDER_CANCELLED(100011, "订单已撤销"),
	ORDER_IRREVOCABLE(100012, "订单不可撤销"),
	TRANSACTION_FLOW_NOT_EXIST(100013, "流水不存在"),
	CARDID_EXIST(100014, "物理卡号已存在"),
	COMPLETED_BINDCARD(100015, "用户已绑卡，不能重复绑卡"),
	CARDID_NOT_EXIST(100016, "物理卡号不存在"),
	TRANSACTION_SERIAL_REPEAT_SUCCESS_RECHARGE(100017, "流水号重复，已完成充值"),

	UNBINDCARD(100018, "用户未绑卡，请先绑卡"),

	USER_EXIST(100019, "用户已存在"),
	USER_CASH_ACCOUNT_INSUFFICIENT(100020, "用户现金账户余额不足"),

	CANNOT_BE_UNBOUND(100021, "非绑定状态不可解绑"),

	REQUEST_TIME_EXPIRED(100022, "请求时间过期"),
	SERIAL_EXIST(100023, "流水号重复"),

	NOT_ALL_NULL(100024, "现金金额和福利卡金额不能同时为空"),

	NOT_AMOUNT_NULL(100025, "订单金额不能为空"),
	;

	private final Integer code;
	private final String codeName;

	OpenResponseCode(Integer code, String codeName) {
		this.code = code;
		this.codeName = codeName;
	}

	public Integer getCode() {
		return code;
	}

	public String getCodeName() {
		return codeName;
	}

}